package com.ruoyi.reissue.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.reissue.mapper.HrReissueCardMapper;
import com.ruoyi.reissue.domain.HrReissueCard;
import com.ruoyi.reissue.service.IHrReissueCardService;

/**
 * 补卡申请Service业务层处理
 * 
 * @author gy
 * @date 2025-05-20
 */
@Service
public class HrReissueCardServiceImpl implements IHrReissueCardService 
{
    @Autowired
    private HrReissueCardMapper hrReissueCardMapper;

    /**
     * 查询补卡申请
     * 
     * @param id 补卡申请主键
     * @return 补卡申请
     */
    @Override
    public HrReissueCard selectHrReissueCardById(Long id)
    {
        return hrReissueCardMapper.selectHrReissueCardById(id);
    }

    /**
     * 查询补卡申请列表
     * 
     * @param hrReissueCard 补卡申请
     * @return 补卡申请
     */
    @Override
    public List<HrReissueCard> selectHrReissueCardList(HrReissueCard hrReissueCard)
    {
        return hrReissueCardMapper.selectHrReissueCardList(hrReissueCard);
    }

    /**
     * 新增补卡申请
     * 
     * @param hrReissueCard 补卡申请
     * @return 结果
     */
    @Override
    public int insertHrReissueCard(HrReissueCard hrReissueCard)
    {
        return hrReissueCardMapper.insertHrReissueCard(hrReissueCard);
    }

    /**
     * 修改补卡申请
     * 
     * @param hrReissueCard 补卡申请
     * @return 结果
     */
    @Override
    public int updateHrReissueCard(HrReissueCard hrReissueCard)
    {
        hrReissueCard.setUpdateTime(DateUtils.getNowDate());
        return hrReissueCardMapper.updateHrReissueCard(hrReissueCard);
    }

    /**
     * 批量删除补卡申请
     * 
     * @param ids 需要删除的补卡申请主键
     * @return 结果
     */
    @Override
    public int deleteHrReissueCardByIds(Long[] ids)
    {
        return hrReissueCardMapper.deleteHrReissueCardByIds(ids);
    }

    /**
     * 删除补卡申请信息
     * 
     * @param id 补卡申请主键
     * @return 结果
     */
    @Override
    public int deleteHrReissueCardById(Long id)
    {
        return hrReissueCardMapper.deleteHrReissueCardById(id);
    }
}
